<?php 

	function smarty_function_link($params, $smarty)
	{
		if(!isset($params['name'])) {
			return "[link param \"name\" not defined]";
		}
		
		return Tools::BuildLinkByRewrite($params['name']);
	}